//
//  NetworkConfig.swift
//  Inquiry
//
//  Created by SSD on 2019/9/3.
//  Copyright © 2019 SSD. All rights reserved.
//

import Foundation
class NetworkConfig {
    static var WEB_PROTOCOL: String {
        switch AppInfo.default.environment {
        case .development:
            fallthrough
        case .pre_distribution:
            fallthrough
        case .distribution:
            return "https://"
        }
    }
    
    static var HOST: String {
        switch AppInfo.default.environment {
        case .development:
            fallthrough
        case .pre_distribution:
            fallthrough
        case .distribution:
            return "mock.yonyoucloud.com"
        }
    }
    
    static var PORT: Int? {
        switch AppInfo.default.environment {
        case .development:
            fallthrough
        case .pre_distribution:
            fallthrough
        case .distribution:
            return nil
        }
    }
    
    static var PATH: String {
        switch AppInfo.default.environment {
        case .development:
            fallthrough
        case .pre_distribution:
            fallthrough
        case .distribution:
            return "/mock/20576/photos"
        }
    }
    
    
    static var PATH_FOR_UPLOADING_FILE: String {
        switch AppInfo.default.environment {
        case .development:
            fallthrough
        case .pre_distribution:
            fallthrough
        case .distribution:
            return ""
        }
    }
}
